#ifndef _APPS_BDESKTOP_CBGDIALOG_H_
#define _APPS_BDESKTOP_CBGDIALOG_H_

#include "auto.h"
#include <buola/gui/cwindow.h>
#include "cdesktop.h"

namespace buola { namespace bdesktop {

class CBgDialog : public gui::CWindow
{
public:
    CBgDialog(CDesktop*);
    ~CBgDialog();
    
    void FillList();
    void UpdateDesktop();

    void AddFile(const CURL&);
    void AddFolder(const CURL&);
////////////// event handling //////////////
    virtual void OnCreate();
    void OnOK();
    void OnCancel();
    void OnAddImage();
    void OnAddFolder();

public:
    int mResult;
    std::wstring mFile;

protected:
    CDesktop *mDesktop;

    gui::CToolBar *mToolBar;
    gui::CListBox *mPictBox;
    gui::CCheckBox *mChangeBox;
    gui::CNumBox *mTimeBox;

    gui::CButton *mOK,*mCancel;
};

/*namespace bdesktop*/ } /*namespace buola*/ }

#endif
